<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
      <script type="text/javascript" src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
      <script type="text/javascript" src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
      <script type="text/javascript" src="http://cdn.bootcss.com/css3pie/2.0beta1/PIE_IE678.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="/Public/Tool/Hui/static/h-ui/css/H-ui.css"/>
    <link type="text/css" rel="stylesheet" href="/Public/Tool/Hui/static/h-ui.admin/css/H-ui.admin.css"/>
    <link type="text/css" rel="stylesheet" href="/Public/Tool/Hui/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <!--[if IE 7]>
      <link href="http://www.bootcss.com/p/font-awesome/assets/css/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    <title>Index</title>
  </head>
  <body>
    
<style>
.pager{
text-align:center;
}
ul.pagination {
  display: inline-block;
  padding: 0;
  margin: 20px 0 0 0;
}

ul.pagination li {
  display: inline;
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
}

ul.pagination li.active {
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}
ul.pagination li:hover:not(.active) {background-color: #ddd;}
ul.pagination li{
      border: 1px solid #ddd; /* Gray */
}
</style>
<div class="text-c">
  <form action="#" method="post">
    渠道:
    <span class="select-box inline">
      <select name="service" class="select">
        <option value="0">全部</option>
        <?php if(is_array($channel_list)): foreach($channel_list as $key=>$item): ?><option value="<?php echo ($item['type']); ?>"><?php echo ($item['name']); ?></option><?php endforeach; endif; ?>
      </select>
    </span>
    商户:
    <span class="select-box inline">
      <select name="mch_id" class="select">
        <option value="0">全部</option>
        <?php if(is_array($account_list)): foreach($account_list as $key=>$item): ?><option value="<?php echo ($item['mch_id']); ?>"><?php echo ($item['username']); ?></option><?php endforeach; endif; ?>
      </select>
    </span>
    <button name="" id="" class="btn btn-success" type="submit"> 搜索 </button>
  </form>
</div>
<div class="page-container">
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr><th>ID</th><th>商户</th><th>渠道</th><th>订单号</th><th>三方订单号</th><th>订单金额</th><th>支付状态</th><th>通知状态</th><th>操作</th></tr>
    </thead>
    <tbody>
    <?php if(is_array($list)): foreach($list as $key=>$item): ?><tr>
      <td><?php echo ($item['id']); ?></td>
      <td><?php echo ($item['username']); ?></td>
      <td><?php echo ($item['name']); ?></td>
      <td><?php echo ($item['trade_no']); ?></td>
      <td><?php echo ($item['out_trade_no']); ?></td>
      <td><?php echo ($item['total_fee']); ?>/100</td>
      <td><?php echo ($item['pay_status']); ?></td>
      <td><?php echo ($item['notice_status']); ?></td>
      <td>
        <a href="<?php echo U('/admin/order/order_info', array('id' => $item['id']));?>">详情</a>
      </td>
    </tr><?php endforeach; endif; ?>
    </tbody>
  </table>
  <div class="pager"><?php echo ($page); ?></div>
</div>

    <script type="text/javascript" src="http://cdn.bootcss.com/jquery/2.1.3/jquery.min.js"></script> 
    <script type="text/javascript" src="/Public/Tool/Hui/static/h-ui/js/H-ui.js"></script> 
    <script type="text/javascript" src="/Public/Tool/Hui/static/h-ui.admin/js/H-ui.admin.js"></script>
  </body>
</html>